package com.zbb.online_exam.entity;

import cn.afterturn.easypoi.excel.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @author zbbstart
 * @date 2021/2/10 - 14:39
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value = "学生对象", description = "封装了学生的各个属性后得到的一个实体对象")
public class Student implements Serializable {
    private static final long serialVersionUID = -3105202243617253318L;
    @ApiModelProperty(name = "studentNo", value = "学生编号", example = "3")
    private Integer studentNo;
    @Excel(name = "学生用户名", height = 20, width = 30, isImportField = "true")
    @ApiModelProperty(name = "studentName", value = "学生名称", example = "Tom")
    private String studentName;
    @ApiModelProperty(name = "teacherNo", value = "老师编号", example = "0001")
    private String teacherNo;
    @ApiModelProperty(name = "teacherName", value = "老师名称", example = "王老师")
    private String teacherName;
}
